﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace KCurveAPI
{
  class Config
  {
    private Config()
    {
      m_data_source = (DataSource)ConfigurationManager.GetSection("DataSource");
      m_base_config = (BaseConfig)ConfigurationManager.GetSection("BaseConfig");
      m_code_manager = (CodeManager)ConfigurationManager.GetSection("CodeManager");
    }

    public DataSource m_data_source { get; private set; }
    public BaseConfig m_base_config { get; private set; }
    public CodeManager m_code_manager { get; private set; }

    public static Config Instance { get { return m_instance; } }

    private static readonly Config m_instance = new Config();
  }
}
